package com.tuyan.aixiang.common;

import android.widget.ImageView;

import com.tuyan.aixiang.common.lang.VoidFunction;

import androidx.appcompat.widget.AppCompatEditText;
import io.reactivex.disposables.Disposable;

public interface IView {

    void bindView();

    void unBindView();

    void showLoading();

    void showLoading(boolean block);

    void showLoading(String text, boolean block);

    void hideLoading();


    void fitSystemWindow(int color);

    void immersion();

    void fullScreen();

    void addDefaultBack();

    void openWeb(String link);

    void addDisposable(Disposable disposable);

    // form
    String getFormText(AppCompatEditText et);

    void loadImage(String uuid, ImageView iv);

    void withLocationPermission(VoidFunction func);

    void withRecordPermission(VoidFunction func);

    void withCameraPermission(VoidFunction func);
//    void checkPermission(String[] permissions, int rationale, int requestCode, VoidFunction function);
}